/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modulo4;

import Modelo.ObjetoPerdido;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author dayana
 */
public class modificarObjetoPerdidoForm extends org.apache.struts.action.ActionForm {

    private String idObj;
    private String tipoObj;
    private String fechaIngreso;
    private String new_descrip;
    private String new_status;
    private List<ObjetoPerdido> objetos;

    public List<ObjetoPerdido> getObjetos() {
        return objetos;
    }

    public void setObjetos(List<ObjetoPerdido> objetos) {
        this.objetos = objetos;
    }



    public String getFechaIngreso() {
        return fechaIngreso;
    }

    public void setFechaIngreso(String fechaIngreso) {
        this.fechaIngreso = fechaIngreso;
    }

    public String getIdObj() {
        return idObj;
    }

    public void setIdObj(String idObj) {
        this.idObj = idObj;
    }

    public String getNew_descrip() {
        return new_descrip;
    }

    public void setNew_descrip(String new_descrip) {
        this.new_descrip = new_descrip;
    }

    public String getNew_status() {
        return new_status;
    }

    public void setNew_status(String new_status) {
        this.new_status = new_status;
    }

    public String getTipoObj() {
        return tipoObj;
    }

    public void setTipoObj(String tipoObj) {
        this.tipoObj = tipoObj;
    }

    /**
     *
     */
    public modificarObjetoPerdidoForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        /*if (getName() == null || getName().length() < 1) {
        errors.add("name", new ActionMessage("error.name.required"));
        // TODO: add 'error.name.required' key to your resources
        }*/
        mapping.getInputForward();

        return errors;
    }
}
